﻿using Merbla.IOC.Logic;
using Microsoft.Practices.Unity;

namespace Merbla.IOC.Unity.Console
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            var container = new UnityContainer();

            container.RegisterType<ILogger, ConsoleLogger>();
            container.RegisterType<IProductManager, ProductManager>();

            var manager = container.Resolve<IProductManager>();

            manager.ShipProduct(new Product {Name = "My Product"});
        }
    }
}